package example.pattern.state;

public class CommonState implements State {

	@Override
	public void print(StateContext sc, String str) {
		System.out.println("common: " + str);
		if(sc.getCounter() % 2 == 0){
			sc.setState(new UpperState());
		}
	}

}
